package breadfactory.warehouse.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

import breadfactory.workorder.dto.BoxLotDTO;
import breadfactory.workorder.dto.WarehouseDTO;

public class WarehouseDAO {
	private SqlMapClientTemplate client;
	public WarehouseDAO(SqlMapClientTemplate client) {
		this.client = client;
	}
	public ArrayList getSelectWareHouseListDAO() {
		ArrayList list = (ArrayList<WarehouseDTO>) client.queryForList("stock.selectWareHouseList");
		System.out.println("DAO :"+list);
		return list;
	}
	public ArrayList selectContentByWareHouseIdDAO(String warehouseId) throws SQLException{
		return (ArrayList<BoxLotDTO>)client.queryForList("stock.selectWareHouseNo", warehouseId);
	}
}
